import request from '@/utils/request'
// 人员信息查询
export function nccBasicUserInfoFindList(query) {
  return request({
    url: '/ncc/basic/UserInfo/nccBasicUserInfoFindList',
    method: 'get',
    params: query
  });
}
//   新增人员信息
export function add(data) {
  return request({
    url: '/ncc/basic/UserInfo/nccBasicUserInfoSave',
    method: 'post',
    data: data
  });
}
//物料标签获取打印数量
export function getCountPrint(data) {
  return request({
    url: '/tableXXXSku/countPrintInfo',
    method: 'post',
    data: data
  });
}
//   修改人员状态
export function updatestate(query) {
  return request({
    url: '/ncc/basic/UserInfo/nccBasicUserInfoEnableStateUpdate',
    method: 'put',
    params: query
  });
}
//获取ncc人员信息下的部门信息接口
export function findDeptListByName(query) {
  return request({
    url: '/ncc/findDeptListByName',
    method: 'get',
    params: query
  });
}
//修改人员信息
export function update(data) {
  return request({
    url: '/ncc/basic/UserInfo/nccBasicUserInfoUpdate',
    method: 'put',
    data
  });
}
//获取供应商列表
export function nccBasicClientInfoFindList(query) {
  return request({
    url: '/basic/customer/queryList',
    method: 'get',
    params: query
  });
}
//模糊查询客户姓名
export function findNccBasicCustomerName(query) {
  return request({
    url: '/ncc/basic/Customer/findNccBasicCustomerName',
    method: 'get',
    params: query
  });
}
//根据name模糊查询仓库
export function findNccBasicStoStockName(query) {
  return request({
    url: '/ncc/basic/StoStock/findNccBasicStoStockName',
    method: 'get',
    params: query
  });
}
//根据name模糊查询人员信息
export function findNccBasicUserNameList(query) {
  return request({
    url: '/ncc/basic/UserInfo/findNccBasicUserNameList',
    method: 'get',
    params: query
  });
}
//根据name模糊查询单据
export function findNccBillstatusName(query) {
  return request({
    url: '/ncc/findNccBillstatusName',
    method: 'get',
    params: query
  });
}
//ncc修改供应商信息
export function editSupplier(query) {
  return request({
    url: '/basic/customer/update',
    method: 'post',
    data: query
  });
}
//删除供应商
export function deleteSupply(query) {
  return request({
    url: '/basic/customer/delete',
    method: 'delete',
    params: query
  });
}
//ncc修改供应商状态
export function statusSupplier(query) {
  return request({
    url: '/basic/customer/updateState',
    method: 'post',
    params: query
  });
}
//ncc新增供应商
export function addSupplier(query) {
  return request({
    url: '/basic/customer/add',
    method: 'post',
    data: query
  });
}
//获取ncc仓库
export function findNccBasicStoStockData(query) {
  return request({
    url: 'basic/stoStock/queryStoStock',
    method: 'get',
    params: query
  });
}
//新增ncc仓库
export function nccBasicStoStockSave(query) {
  return request({
    url: '/ncc/basic/StoStock/nccBasicStoStockSave',
    method: 'post',
    data: query
  });
}
//修改ncc仓库
export function nccBasicStoStockUpdate(query) {
  return request({
    url: '/ncc/basic/StoStock/nccBasicStoStockUpdate',
    method: 'put',
    data: query
  });
}
//修改仓库状态
export function nccBasicStoStockEnableState(query) {
  return request({
    url: '/ncc/basic/StoStock/nccBasicStoStockEnableState',
    method: 'put',
    params: query
  });
}
//商品单位删除
export function unitDelete(query) {
  return request({
    url: '/ncc/basic/unit/delete',
    method: 'delete',
    params: query
  })
}
//图标类型删除
export function picTypeDelete(query) {
  return request({
    url: '/basic/picType/delete',
    method: 'delete',
    params: query
  })
}
//图标管理删除
export function picInfoDelete(query) {
  return request({
    url: '/basic/picInfo/delete',
    method: 'delete',
    params: query
  })
}
//获取图标信息（目前在基础信息下）
export function findBasicPicInfoList(query) {
  return request({
    url: '/basic/picInfo/findBasicPicInfoList',
    method: 'get',
    params: query
  })
}
//新增图标
export function basicPicInfoSave(query) {
  return request({
    url: '/basic/picInfo/basicPicInfoSave',
    method: 'post',
    data: query
  })
}
//获取图标
export function findBasicPicTypeData(query) {
  return request({
    url: '/basic/picType/findBasicPicTypeData',
    method: 'get',
    params: query
  })
}
//上传
export function upLoad(query) {
  return request({
    url: '/common/upload',
    method: 'post',
    data: query,
  })
}
export function basicPicInfoUpdate(query) {
  return request({
    url: '/basic/picInfo/basicPicInfoUpdate',
    method: 'put',
    data: query
  })
}
//获取所有类型的图标
export function findBasicPicTypeAll(query) {
  return request({
    url: '/basic/picType/findBasicPicTypeAll',
    method: 'get',
    params: query
  })
}
//新增图标类型
export function basicPicTypeSave(query) {
  return request({
    url: '/basic/picType/basicPicTypeSave',
    method: 'post',
    data: query
  })
}
//修改图标类型
export function updateBasicPicType(query) {
  return request({
    url: '/basic/picType/updateBasicPicType',
    method: 'put',
    data: query
  })
}
//删除商品
export function deleteBasicSkuInfoData(query) {
  return request({
    url: '/basic/skuInfo/delete',
    method: 'delete',
    params: query
  });
}
//获取ncc商品信息
export function findNccBasicSkuInfoData(query) {
  return request({
    url: '/basic/skuInfo/queryList',
    method: 'get',
    params: query
  });
}
//新增ncc商品信息
export function nccBasicSkuInfoSave(query) {
  return request({
    url: '/basic/skuInfo/add',
    method: 'post',
    data: query
  });
}
//修改ncc商品信息
export function nccBasicSkuInfoUpdate(query) {
  return request({
    url: '/basic/skuInfo/update',
    method: 'post',
    data: query
  });
}
//修改ncc商品状态
export function nccBasicSkuInfoEnableStatusUpdate(query) {
  return request({
    url: '/basic/skuInfo/updateState',
    method: 'post',
    params: query
  });
}
//获取集团信息
export function findNccBasicManufacurerInfoData(query) {
  return request({
    url: '/ncc/basic/manufacturerInfo/findNccBasicManufacurerInfoData',
    method: 'get',
    params: query
  });
}
//新增集团信息
export function nccBasicManuFacurerInfoSave(query) {
  return request({
    url: '/ncc/basic/manufacturerInfo/nccBasicManuFacurerInfoSave',
    method: 'post',
    data: query
  });
}
//获取集团下拉框信息
export function findBasicManufacturerInfo(query) {
  return request({
    url: '/ncc/basic/manufacturerInfo/findBasicManufacturerInfo',
    method: 'get',
    params: query
  });
}
//修改集团信息
export function nccBasicManufacurerInfoUpdate(query) {
  return request({
    url: '/ncc/basic/manufacturerInfo/nccBasicManufacurerInfoUpdate',
    method: 'put',
    data: query
  });
}
//ncc获取物料信息
export function findNccBasicUnitData(query) {
  return request({
    url: '/ncc/basic/unit/findNccBasicUnitData',
    method: 'get',
    params: query
  });
}
//ncc新增物料信息
export function nccBasicUnitSave(query) {
  return request({
    url: '/ncc/basic/unit/nccBasicUnitSave',
    method: 'post',
    data: query
  });
}
//ncc修改物料信息
export function nccBasicUnitUpdate(query) {
  return request({
    url: '/ncc/basic/unit/nccBasicUnitUpdate',
    method: 'put',
    data: query
  });
}
//ncc单据查询
export function findNccBillStatusData(query) {
  return request({
    url: '/ncc/findNccBillStatusData',
    method: 'get',
    params: query
  });
}
//ncc单据新增
export function nccBillStatusSave(query) {
  return request({
    url: '/ncc/nccBillStatusSave',
    method: 'post',
    data: query
  });
}
//ncc单据修改
export function nccBillStatusUpdate(query) {
  return request({
    url: '/ncc/nccBillStatusUpdate',
    method: 'put',
    data: query
  });
}
//ncc生产商信息获取
export function findNccMaterialManufacturerData(query) {
  return request({
    url: '/ncc/findNccMaterialManufacturerData',
    method: 'get',
    params: query
  });
}
//ncc生产商信息新增
export function nccMaterialManufacturerSave(query) {
  return request({
    url: '/ncc/nccMaterialManufacturerSave',
    method: 'post',
    data: query
  });
}
//ncc生产商信息修改
export function nccMaterialManufacturerUpdate(query) {
  return request({
    url: '/ncc/nccMaterialManufacturerUpdate',
    method: 'put',
    data: query
  });
}
//ncc生产商状态修改
export function nccMaterialManufacturerEnableStatusUpdate(query) {
  return request({
    url: '/ncc/nccMaterialManufacturerEnableStatusUpdate',
    method: 'put',
    params: query
  });
}
//ncc查询物料转化系数
export function findNccBasicReducedUnitData(query) {
  return request({
    url: '/ncc/basic/reducedUnit/findNccBasicReducedUnitData',
    method: 'get',
    params: query
  });
}
//ncc新增物料转化系数
export function nccBasicReducedUnitSave(query) {
  return request({
    url: '/ncc/basic/reducedUnit/nccBasicReducedUnitSave',
    method: 'post',
    data: query
  });
}
//ncc修改物料转化系数
export function nccBasicReducedUnitUpdate(query) {
  return request({
    url: '/ncc/basic/reducedUnit/nccBasicReducedUnitUpdate',
    method: 'put',
    data: query
  });
}
//ncc获取物料库存信息
export function findNccBasicMaterialstockData(query) {
  return request({
    url: '/ncc/basic/materialstock/findNccBasicMaterialstockData',
    method: 'get',
    params: query
  });
}
//ncc新增物料库存信息
export function nccBaiscMaterialstockSave(query) {
  return request({
    url: '/ncc/basic/materialstock/nccBaiscMaterialstockSave',
    method: 'post',
    data: query
  });
}
//ncc修改物料库存信息
export function nccBasicMaterialstockUpdate(query) {
  return request({
    url: '/ncc/basic/materialstock/nccBasicMaterialstockUpdate',
    method: 'put',
    data: query
  });
}
//根据树查找table
export function findBasicSkuTypeDetailByClassId(query) {
  return request({
    url: '/ncc/basic/skuTypeDetail/findBasicSkuTypeDetailByClassId',
    method: 'get',
    params: query
  });
}
//商品类型删除
export function skuTypeDelete(query) {
  return request({
    url: '/ncc/basic/skuType/delete',
    method: 'delete',
    params: query
  });
}
//商品新增单位选择
export function findAllNccBasicUnitData(query) {
  return request({
    url: '/ncc/basic/unit/findAllNccBasicUnitData',
    method: 'get',
    params: query
  });
}
//ncc商品类型新增
export function saveSkuType(query) {
  return request({
    url: '/ncc/basic/skuType/saveSkuType',
    method: 'post',
    data: query
  });
}
//ncc商品类型修改
export function updateSkuType(query) {
  return request({
    url: '/ncc/basic/skuType/updateSkuType',
    method: 'put',
    data: query
  });
}
//ncc商品信息打印
export function createQrCodeN(query) {
  return request({
    url: '/tableXXXSku/printSkuInfo',
    method: 'post',
    data: query
  });
}
//出库单打印
export function getWarehouseOutDetailProductPrint(query) {
  return request({
    url: '/wms/billPrint/'+ query,
    method: 'get',
  });
}
//ncc商品类型状态修改
export function updateSkuTypeEnableStatus(query) {
  return request({
    url: '/ncc/basic/skuType/updateSkuTypeEnableStatus',
    method: 'put',
    params: query
  });
}
//ncc获取二次树形类型
export function findTreeSkuTypeData(query) {
  return request({
    url: '/ncc/basic/skuTypeDetail/findTreeSkuTypeData',
    method: 'get',
    params: query
  });
}
//ncc二次树删除
export function updateSkuTypeStatus(query) {
  return request({
    url: '/ncc/basic/skuTypeDetail/'+ query,
    method: 'delete',
  });
}
//二次树新增
export function basicSkuTypeDetailSave(query) {
  return request({
    url: '/ncc/basic/skuTypeDetail/basicSkuTypeDetailSave',
    method: 'post',
    data: query
  });
}
//二次树修改
export function skuTypeDetail(query) {
  return request({
    url: '/ncc/basic/skuTypeDetail',
    method: 'put',
    data: query
  });
}
//单据管理树信息获取
export function findAllBasicBillsType(query) {
  return request({
    url: '/wms/basic/billsType/findAllBasicBillsType',
    method: 'get',
    params: query
  });
}
//新增单据子类
export function saveBasicBillsType(query) {
  return request({
    url: '/wms/basic/billsType/saveBasicBillsType',
    method: 'post',
    data: query
  });
}
//修改单据子类
export function putBasicBillsType(query) {
  return request({
    url: '/wms/basic/billsType/putBasicBillsType',
    method: 'put',
    data: query
  });
}
//单据分类select父类数据
export function findWmsUseBillsTypeAll(query) {
  return request({
    url: '/ncc/basic/billsType/findWmsUseBillsTypeAll',
    method: 'get',
    params: query
  });
}
//单据状态修改
export function putBasicBillsEnableStatus(query) {
  return request({
    url: '/wms/basic/billsType/putBasicBillsEnableStatus',
    method: 'put',
    params: query
  });
}
//获取所有规则
export function findRuleAll(query) {
  return request({
    url: '/wms/rule/findRuleAll',
    method: 'get',
    params: query
  });
}
//报错规则关联
export function associationRule(query,data) {
  return request({
    url: '/wms/rule/associationRule',
    method: 'post',
    params: query,
    data:data
  });
}
//获取关联后的信息
export function getRuleData(query) {
  return request({
    url: '/wms/rule/getRuleData',
    method: 'get',
    params: query,
  });
}
//关闭关联操作
export function putRuleEnableStatus(query) {
  return request({
    url: '/wms/rule/putRuleEnableStatus',
    method: 'put',
    params: query,
  });
}
//获取单据关联信息
export function getBillsData(query) {
  return request({
    url: '/wms/bills/type/bills/status/getBillsData',
    method: 'get',
    params: query,
  });
}
//新增关联信息
export function saveBillsInfo(query) {
  return request({
    url: '/wms/bills/type/bills/status/saveBillsInfo',
    method: 'post',
    data: query,
  });
}
//修改单据关联状态
export function putBillsEnableStatus(query) {
  return request({
    url: '/wms/bills/type/bills/status/putBillsEnableStatus',
    method: 'put',
    params: query,
  });
}
//新增规则
export function saveRuleInfo(query) {
  return request({
    url: '/wms/rule/saveRuleInfo',
    method: 'post',
    data: query,
  });
}
//停用子类规则
export function putRuleInfo(query) {
  return request({
    url: '/wms/rule/putRuleInfo',
    method: 'put',
    params: query,
  });
}
//修改子类规则
export function putRule(query) {
  return request({
    url: '/wms/rule/putRule',
    method: 'put',
    data: query,
  });
}
//获取单据类型树形信息
export function findBillsTree(query) {
  return request({
    url: '/bills/type/map/findBillsTree',
    method: 'get',
    params: query,
  });
}
//新增单据类型子类
export function saveChildBills(query) {
  return request({
    url: '/bills/type/map/saveBills',
    method: 'post',
    data: query,
  });
}
//修改单据类型子类
export function updateBills(query) {
  return request({
    url: '/bills/type/map/updateBills',
    method: 'put',
    data: query,
  });
}
//修改单据类型子状态
export function putBillsChildEnableStatus(query) {
  return request({
    url: '/bills/type/map/putBillsEnableStatus',
    method: 'put',
    params: query,
  });
}
//已打印数量树形结构
export function findPrintedSkuList(query) {
  return request({
    url: '/tableXXXSku/findPrintedSkuList',
    method: 'get',
    params: query,
  });
}
//批量打印
export function batchPrintNoOneCode(query) {
  return request({
    url: '/tableXXXSku/batchPrintNoOneCode',
    method: 'post',
    data: query,
  });
}









